package com.asktgapp.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;

import com.asktgapp.application.MyApplication;
import com.asktgapp.eventbus.HasNewEvent;
import com.asktgapp.eventbus.HomeEvent;
import com.asktgapp.eventbus.WebEvent;
import com.asktgapp.modulebase.common.util.PreferencesUtil;
import com.asktgapp.modulebase.common.util.Util;
import com.sobot.chat.SobotApi;
import com.sobot.chat.api.model.Information;

public class MyZhiChiMagessReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Information info = new Information();
        String content = intent.getStringExtra("content"); //未读消息数
        int noReadNum = intent.getIntExtra("noReadCount", 0);
        if(noReadNum!=0){
            WebEvent.postEvent("",true);
            HomeEvent.postEvent(900);
        }
    }
}
